#include<stdio.h>
#include<stdlib.h>
#include<string.h>

#include"client.h"
#include"server.h"
#include"socket.h"
#include"types.h"
extern void setup_view();
pthread_t server_tid, client_tid;
pthread_mutex_t client_exit = PTHREAD_MUTEX_INITIALIZER;
msg_t message;
static online_t online;
static void init_clint_server(void){
	pthread_mutex_lock(&client_request);
	pthread_mutex_lock(&client_exit);
	pthread_mutex_lock(&server_done);

	pthread_create(&client_tid, NULL, client_main, NULL);
	pthread_create(&server_tid, NULL, server_main, NULL);
	printf("init\n");	
	online.next = NULL;
	return;
}

void transform_msg(msg_t *p){
	message = *p;
	return;
}
int main(){
	init_clint_server();
	return 0;
}
